<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <body>

        <ui:composition>

            <div id="post">

                <h3>Seleção de Lista</h3>

                <!--                <div id="stylized" class="myform">-->


                <p:dataTable var="alunoTemp" value="#{RelatorioController.alunos}" widgetVar="alunoTable" paginator="true" rows="20" rowsPerPageTemplate="10,20,50,100">
                    <!--
                                    <f:facet name="header">  
                                        <p:outputPanel>  
                                            <h:outputText value="Pesquisar Alunos:" />  
                                            <p:inputText id="pesq" onkeyup="alunoTable.filter()" />  
                                        </p:outputPanel>  
                                    </f:facet>  -->


                    <p:column filterBy="#{alunoTemp.nome}" footerText="contains"  filterMatchMode="contains">
                        <f:facet name="header">
                            <h:outputText value="Nome" />
                        </f:facet>
                        <h:outputText value="#{alunoTemp.nome}" />
                    </p:column>

                    <p:column style="text-align: center;" >
                        <f:facet name="header">
                            <h:outputText value="Painel" />
                        </f:facet>
                        <!--                            <p:commandButton image="ui-icon ui-icon-search" title="visualizar" actionListener="{AlunoController.load}" ajax="false"/>-->
                        <p:commandButton image="ui-icon ui-icon-disk" title="visualizar" value="Relatório" action="#{PageManager.setModalInvisibleRefresh}"  ajax="false">
                            <f:setPropertyActionListener value="#{alunoTemp}" target="#{RelatorioController.aluno}" />
                        </p:commandButton>



                    </p:column>
                </p:dataTable>


                <h:commandButton styleClass="button" action="#{PageManager.setModalInvisibleRefresh}" value="Salvar" id="salvar" />

                <!--                </div>-->
            </div>
        </ui:composition>

    </body>
</html>
